package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资产调拨对象 sys_asset_transfer
 * 
 * @author sxy
 * @date 2025-03-26
 */
public class SysAssetTransfer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 调拨ID */
    private Long transferId;

    /** 资产ID */
    @Excel(name = "资产ID")
    private Long assetId;

    public String getAssetNo() {
        return assetNo;
    }

    public void setAssetNo(String assetNo) {
        this.assetNo = assetNo;
    }

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetNo;

    /** 原部门ID */
    @Excel(name = "原部门ID")
    private Long oldDeptId;

    /** 新部门ID */
    @Excel(name = "新部门ID")
    private Long newDeptId;

    /** 原使用人ID */
    @Excel(name = "原使用人ID")
    private Long oldUserId;

    /** 新使用人ID */
    @Excel(name = "新使用人ID")
    private Long newUserId;

    public Long getOldDeptId() {
        return oldDeptId;
    }

    public void setOldDeptId(Long oldDeptId) {
        this.oldDeptId = oldDeptId;
    }

    public Long getNewDeptId() {
        return newDeptId;
    }

    public void setNewDeptId(Long newDeptId) {
        this.newDeptId = newDeptId;
    }

    /** 原位置 */
    @Excel(name = "原位置")
    private String oldLocation;

    /** 新位置 */
    @Excel(name = "新位置")
    private String newLocation;

    /** 调拨原因 */
    @Excel(name = "调拨原因")
    private String transferReason;

    /** 调拨日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调拨日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transferDate;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long operatorId;

    public void setTransferId(Long transferId) 
    {
        this.transferId = transferId;
    }

    public Long getTransferId() 
    {
        return transferId;
    }
    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }
    public void setOldUserId(Long oldUserId) 
    {
        this.oldUserId = oldUserId;
    }

    public Long getOldUserId() 
    {
        return oldUserId;
    }
    public void setNewUserId(Long newUserId) 
    {
        this.newUserId = newUserId;
    }

    public Long getNewUserId() 
    {
        return newUserId;
    }
    public void setOldLocation(String oldLocation) 
    {
        this.oldLocation = oldLocation;
    }

    public String getOldLocation() 
    {
        return oldLocation;
    }
    public void setNewLocation(String newLocation) 
    {
        this.newLocation = newLocation;
    }

    public String getNewLocation() 
    {
        return newLocation;
    }
    public void setTransferReason(String transferReason) 
    {
        this.transferReason = transferReason;
    }

    public String getTransferReason() 
    {
        return transferReason;
    }
    public void setTransferDate(Date transferDate) 
    {
        this.transferDate = transferDate;
    }

    public Date getTransferDate() 
    {
        return transferDate;
    }
    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("transferId", getTransferId())
            .append("assetId", getAssetId())
                .append("oldUserId", getOldUserId())
                .append("oldDeptId", getOldDeptId())
                .append("newDeptId", getNewDeptId())
            .append("oldUserId", getOldUserId())
            .append("newUserId", getNewUserId())
            .append("oldLocation", getOldLocation())
            .append("newLocation", getNewLocation())
            .append("transferReason", getTransferReason())
            .append("transferDate", getTransferDate())
            .append("operatorId", getOperatorId())
            .toString();
    }
}
